// i.d(t, {
//   GT: () => UnauthorizedException,
//   V2: () => ForbiddenException,
//   TR: () => NotFoundException
// })

import BaseException from "./base.exception"
export class ApiException extends BaseException {
  constructor(e: Error | string = "Api Exception") {
    super(e)
    this.name = "ApiException"
  }
}
export class UnauthorizedException extends ApiException {
  constructor(e: Error | string = "Unauthorized") {
    super(e)
    this.name = "Unauthorized"
  }
}
export class ForbiddenException extends ApiException {
  constructor(e: Error | string = "Forbidden") {
    super(e)
    this.name = "Forbidden"
  }
}
export class NotFoundException extends ApiException {
  constructor(e: Error | string = "Not Found") {
    super(e)
    this.name = "NotFound"
  }
}
